package com.runda.controller.delivery;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bbjob.model.ExamineeInfo;
import com.runda.service.IClientService;
import com.runda.util.DataEntity;

@Api(tags="clientApi-delivery", description="考试机")
@RestController
@RequestMapping(path="delivery/client", produces="application/json;charset=utf-8")
public class DeliveryClientController {
	
	@Resource
	private IClientService clientService;
	
	@ApiOperation(value="考试机登录", notes="考试机登录")
	@ApiImplicitParam(name="examineeInfo", value="考生信息", required=true, dataType="ExamineeInfo")
	@RequestMapping(value="login", method=RequestMethod.POST)
	public DataEntity registe(@RequestBody ExamineeInfo examineeInfo) {
		
		return clientService.login(examineeInfo);
	}
}
